package staticindex;

import java.util.Date;

public class stuTest {
    public static void main(String[] args) {
        //测试类
        Date d=new Date();
        System.out.println(d);
        //s1
        Student s1=new Student();

        s1.setName("xiaoming");
        s1.setAge(23);
        s1.setGender("男");
        s1.setId(1);

        System.out.println( s1.toString());
        s1.show();
        //s2
        Student s2=new Student();
        s2.setName("xiaoming2");
        s2.setAge(21);
        s2.setGender("男");
        s2.setId(2);
        System.out.println(s2.toString());
        s2.show();

    }
}
